package day16.edu;
// Created: 16/09/2025, ChangJiang Ru
public class User {
    private String name;
    private String password;

    public User()
    {

    }
    public User(String name, String password)
    {
        this.name = name;
        this.password = password;
    }

    public void setName(String newName)
    {
        this.name = newName;
    }
    public void setPassword(String newPassword)
    {
        this.password = newPassword;
    }

    public String getName()
    {
        return this.name;
    }
    public String getPassword()
    {
        return this.password;
    }

    @Override
    public String toString()
    {
        return name + "-" + password;
    }
}
